#ifndef CAPLETINFO_HPP
#define CAPLETINFO_HPP

namespace TermStructure
{
	template <typename T>
	class CapletInfo
	{
	public:
		T ResetTime;
		T PaymentTime;
		T Strike;
	};

	template<typename TLMMAdvancer, typename T, typename TSize = long>
	class CapletPricer
	{
		TLMMAdvancer *_advancer;
	public:
		CapletInfo Info;
		TSize NumberOfTrials;
		T Price()
		{
			T result = 0;
			_advancer()->CurrentTime = 0;
			_advancer()->TimeStep = PaymentTime();
			for(TSize i = 0; i < NumberOfTrials; i++) {
				_advancer()->Advance();
				result += 
			}
		}
	}
}

#endif